package com.deepocean.dao;


import com.deepocean.entity.CurvedScreenCondition;
import com.deepocean.entity.CurvedScreenEntity;
import com.deepocean.entity.CurvedScreenInAndOut1Hour;
import com.deepocean.entity.process.CurvedScreenProcessEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 弧形筛
 */
@Mapper
public interface CurvedScreenDao {
    /**
     * 离心机增加记录
     * @param curvedScreenEntity
     * @return
     */
    boolean add(CurvedScreenEntity curvedScreenEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    CurvedScreenInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param curvedScreenCondition
     * @return
     */
    List<CurvedScreenEntity> getCurvedScreenByCondition(CurvedScreenCondition curvedScreenCondition);

    boolean addProcess(CurvedScreenProcessEntity curvedScreenProcessEntity);
}
